var commonModule = angular.module('CommonModule');


commonModule.factory('BaseService', ['$http', '$log', 'ApiUrls', function($http, $log, ApiUrls) {
    function BaseService() {

    }

    BaseService.prototype.queryAllEmps = function(fn) {
        $log.info(ApiUrls.user_user_queryAllEmps);
        $http.get(ApiUrls.user_user_queryAllEmps)
            .success(function(data, status, headers, config) {
                fn.call(this, data);
            })
            .error(function(data, status, headers, config, statusText) {
                $log.error('method:queryAllEmps**********BaseService');
            });
    };
    return new BaseService();

}]);
